package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.bean.SellBean;
import com.project.bean.ShopBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;

@Mapper
public interface ISellMapper extends BaseMapper<SellBean> {
    /**
     * 批量添加销售明细，库存商品批量减少
     * @param sellId 销售ID
     * @param shopList 销售车集合
     */
    public void addSellInfo(@Param("sellId") Integer sellId,
                            @Param("shopList") Collection<ShopBean> shopList);
}
